package com.lhgray.sglhome.domain.usecase

import com.freightoa.foundation.net.ApiResult
import com.freightoa.foundation.presentation.domain.BaseUseCase
import com.lhgray.sglhome.domain.model.TruckingBean
import com.lhgray.sglhome.data.repository.TruckingRepository
import javax.inject.Inject


class TruckingUseCase @Inject constructor(private val truckingRepository: TruckingRepository) :
    BaseUseCase() {
    suspend operator fun invoke(fileNo: String): Result<TruckingBean?> {
        return handleNoDataTask(truckingRepository.getTruckingJob(fileNo))
    }
}